package top.biangege.bbs.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.biangege.bbs.entity.Result;
import top.biangege.bbs.entity.bo.UserLoginBo;
import top.biangege.bbs.service.UserService;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @PostMapping("/login")
    public Result login(UserLoginBo userLoginBo){
        System.out.println(userLoginBo);
        return userService.login(userLoginBo);
    }
}
